<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>{$pagetitle}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/admin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/admin/style/admin.css" media="all">
    <link rel="stylesheet" href="/static/admin/style/global.css" media="all">
</head>
<body>

<div class="layui-fluid">
    <div class="layui-card">

        <div class="layui-form-header">

            <div class="header-left" style="width:10%">
                <div class="layui-inline">
                    <h2 class="pagetitle">选择学校</h2>
                </div>
            </div>
            <div class="header-right search-field" style="width:80%;">
                <form action="#" method="get">
                    <div class="layui-inline">
                        <label class="layui-form-label">地区</label>
                        <div class="layui-input-inline">
                            <select name="type" style="width:100px;" class="layui-input">
                                <option value="">宝山区</option>
                                <option value="0" selected>静安区</option>
                                <option value="1" >长宁区</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">地质类型</label>
                        <div class="layui-input-inline">
                            <select name="type" style="width:100px;" class="layui-input">
                                <option value="">地质沉降区</option>
                                <option value="0" selected>内涝区</option>
                                <option value="1" >海洋灾害地区</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">学校</label>
                        <div class="layui-input-inline">
                            <input type="text" name="username" value="" placeholder="" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-inline">
                        <button type="submit" class="layui-btn layuiadmin-btn-list" lay-submit lay-filter="LAY-app-contlist-search">
                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                        </button>
                    </div>
                </form>

            </div>
        </div>

        <div class="layui-card-body">
            <form class="layui-form" action="{:url()}" onsubmit="return save_form(this)">
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th width="3%"><input type="checkbox" value="0" class="checkall" lay-ignore></input</th>
                        <th width="20%">学校名称</th>
                        <th width="20%">地址类型</th>
                        <th width="10%">所在区域</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach $data as $key=>$v}




                    <tr>
                        <td style="text-align: center;"><input type='checkbox' class="chekboxs" name="ids[]" lay-ignore value="{$v.id}"></td>
                        <td class="center">上海大学</td>
                        <td class="center tab-title">地质沉降区</td>
                        <td class="center">宝山区</td>

                    </tr>
                    {/foreach}
                    </tbody>
                </table>
                <div class="listpage">{$pagelist|raw}</div>
            </form>
            <div class="layui-form-item layui-layout-admin" style="margin-top: 30px;">
                <div class="layui-footer" style="left: 0; padding: 0px 2px">
                    <button class="layui-btn layui-btn-fluid">增加勾选的学校</button>
                </div>
            </div>

        </div>

    </div>
</div>

<script src="/static/admin/layui/layui.js"></script>
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/globals.js"></script>
<!--文件上传的预览功能中中也需要用到我 fancybox plus start-->
<link rel="stylesheet" type="text/css" href="/static/fancybox3/jquery.fancybox.min.css" media="screen" />	

<script type="text/javascript" src="/static/fancybox3/jquery.fancybox.min.js"></script>
<!--文件上传的预览功能中中也需要用到我 fancybox plus end-->
<script>
    layui.config({
        base: '/static/admin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form'], function() {
        var $ = layui.$,
            admin = layui.admin,
            element = layui.element,
            form = layui.form;
        form.render(null, 'component-form-element');
        element.render('breadcrumb', 'breadcrumb');

    });
    //删除
    function this_delete() {
        layer.confirm("您确定要删除吗？", function() {
            $('.layui-form').attr('action', '{:url('
            delete ')}');
            $('.layui-form').submit();
        }, function() {
            layer.closeAll();
            return false;
        });
    }
    $(".fancybox").fancybox();
</script>

</body>
</html>
